package packets;

import org.jnetpcap.nio.JBuffer;
import org.jnetpcap.nio.JMemory.Type;

public class TOSData extends JBuffer{
	
	private int tos;
	private int tosMetric;
	
	public int tos(){
		return this.tos;
	}
	
	public int tosMetric(){
		return this.tosMetric;
	}
	
	public TOSData(JBuffer peer, int offset, int length) {
		super(peer);
		this.peer(peer, offset, length);
		decode();
	}


	public void decode() {
		tos = getUByte(0);
		tosMetric = getUShort(2);
		
	}

}
